<template>
  <el-config-provider :locale="elementLocales[locale]">
    <RouterView/>
  </el-config-provider>
</template>
<script setup>
// 骨架屏
import {useSkeletonStore} from "@/stores/skeleton.js";
// 国际化
import { elementLocales } from '@/i18n'
const { locale } = useI18n();
locale.value = localStorage.getItem('locale') || 'zh-cn';

// 获取骨架屏的状态信息
const skeletonStore = useSkeletonStore()

// 生命周期加载
onMounted(() => {
  setTimeout(() => {
    skeletonStore.skLoading = false;
  }, 600)
})
</script>
